<?php
require_once (MODEL_PATH . "DAO/dao_interface.php");

class CvInfo {
	private $xmlCVPath;
	private $xmlCV;
	
	public function getXMLCVPath() {
		return $this->xmlCVPath;
	}
	public function setXMLCVPath($path) {
		$this->xmlCVPath = $path;
	}
	
	public function getXMLCV() {
		return $this->xmlCV;
	}
	public function setXMLCV($xml) {
		$this->xmlCV = $xml;
	}
	
	public function __construct() {
		$this->xmlCVPath = "";
		$this->xmlCV = NULL;
	}
	
	public function loadXML($path) {
		$this->xmlCVPath = $path;
		$this->xmlCV = simplexml_load_file($this->xmlCVPath);
	}
	
	public function updateXML() {
		$this->xmlCV->asXML($this->xmlCVPath);
	}
}	

?>